package cn.sypt.yuhao.model;

public class Sdzfc {
	
	public String getSub(String str) {
		if (str == null || str.equals(""))
			return " ";
		if (str.length() > 10)
			str = str.substring(0, 10) + "...";
		return str;
	}
	
	public String getSub5(String str) {
		if (str == null || str.equals(""))
			return " ";
		if (str.length() > 5)
			str = str.substring(0, 5) + "...";
		return str;
	}

}
